package com.material.factory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.material.common.annotation.Excel;
import com.material.common.core.domain.BaseEntity;

/**
 * 工厂供应商预约燃料比例分配对象 factory_supplier_config
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class FactorySupplierConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 工厂id */
    @Excel(name = "工厂id")
    private Long factoryId;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long supplierId;

    /** 燃料品名id */
    @Excel(name = "燃料品名id")
    private Long fuelId;

    /** 配送比例 */
    @Excel(name = "配送比例")
    private Long ratio;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setFuelId(Long fuelId) 
    {
        this.fuelId = fuelId;
    }

    public Long getFuelId() 
    {
        return fuelId;
    }
    public void setRatio(Long ratio) 
    {
        this.ratio = ratio;
    }

    public Long getRatio() 
    {
        return ratio;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryId", getFactoryId())
            .append("supplierId", getSupplierId())
            .append("fuelId", getFuelId())
            .append("ratio", getRatio())
            .append("createTime", getCreateTime())
            .toString();
    }
}
